﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace SilverlightLesson1
{
    public static class ControlExtensions
    {
        //public static void Click(this White.Core.UIItems.ListBoxItems.ComboBox cbxBox, AttachedMouse mouse)
        //{
        //    int x = (int)cbxBox.Bounds.BottomRight.X - 10;
        //    System.Windows.Point point = new System.Windows.Point(x, Convert.ToInt32(cbxBox.ClickablePoint.Y));
        //    mouse.Click(point);
        //}

        //public static void Select(this White.Core.UIItems.ListBoxItems.ComboBox cbxBox, AttachedMouse mouse, int index)
        //{
        //    Click(cbxBox, mouse);
        //    cbxBox.Items[index].Click();
        //}

        //public static void Select(this White.Core.UIItems.ListBoxItems.ComboBox cbxBox, AttachedMouse mouse, string itemString)
        //{
        //    Click(cbxBox, mouse);
        //    cbxBox.Item(itemString).Select();
        //}

    }
}
